package d6_object;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

//注意: 如果学生对象要参与序列化, 必须实现序列化接口
@Data  //get + set + equals + 无参 + hashCode + toString
@NoArgsConstructor //无参
@AllArgsConstructor //有参
public class Student implements Serializable {
    private String name;
    private int age;
    //transient 修饰成员变量将不再参与系列化
    private transient String passWord;
    private double height;
}
